package com.wcs.exam.controller.admin.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * Admin-素材信息-查看响应对象
 * </p>
 *
 * @author wcs
 * @since 2025-03-24
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-素材信息-查看响应对象")
public class AdminMaterialViewResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "分类ID")
    private Long categoryId;

    @Schema(description = "素材名称")
    private String materialName;

    @Schema(description = "素材类型(1:视频2:音频;3:文档)")
    private Integer materialType;

    @Schema(description = "素材大小")
    private Long materialSize;

    @Schema(description = "素材地址")
    private String materialUrl;

    @Schema(description = "点播平台")
    private Integer vodPlatform;

    @Schema(description = "存储平台")
    private Integer storagePlatform;

    @Schema(description = "状态(1转码中，2成功，3失败)")
    private Integer videoStatus;

    @Schema(description = "音视频时长，单位秒")
    private Integer videoLength;

    @Schema(description = "音视频vid")
    private String videoVid;

    @Schema(description = "文档页数，单位页")
    private Integer docPage;

    @Schema(description = "图片宽度")
    private Integer imgWidth;

    @Schema(description = "图片高度")
    private Integer imgHeight;

    @Schema(description = "状态(1:正常，0:禁用)")
    private Integer status;

    @Schema(description = "排序")
    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "修改时间")
    private LocalDateTime gmtModified;
}
